package com.example.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @auther falls_vc
 * description:
 * @date 2025/6/7  22:29
 */
@Getter
@AllArgsConstructor
public enum ActivityPrizeStatusEnum {
    INIT(1,"初始化"),
    COMPLETED(2,"已被抽取");

    private final Integer code;
    private final String message;

    public static ActivityPrizeStatusEnum forName(String name) {
        for(ActivityPrizeStatusEnum activityPrizeStatusEnum: ActivityPrizeStatusEnum.values()) {
            if(activityPrizeStatusEnum.name().equalsIgnoreCase(name)) {
                return activityPrizeStatusEnum;
            }
        }
        return null;
    }

}
